package entity;

import java.util.ArrayList;
import java.util.List;

import entity.annotation.Onetomany;
import entity.annotation.Table;

@Table(name="TB_DEPARTMENT")
public class Department {
	
	@Onetomany(mapby="tb_student",id="departmentid",fk="departmentid")
	private ArrayList<Student> studs;
	public ArrayList<Student> getStuds() {
		return studs;
	}
	public void setStuds(ArrayList<Student> studs) {
		this.studs = studs;
	}
	private int DEPARTMENTID;
	private String DEPARTMENTNAME;
	public int getDEPARTMENTID() {
		return DEPARTMENTID;
	}
	public void setDEPARTMENTID(int dEPARTMENTID) {
		DEPARTMENTID = dEPARTMENTID;
	}
	public String getDEPARTMENTNAME() {
		return DEPARTMENTNAME;
	}
	public void setDEPARTMENTNAME(String dEPARTMENTNAME) {
		DEPARTMENTNAME = dEPARTMENTNAME;
	}
}
